<?php

namespace app\api\model;

class RecycleReview extends Common
{
    static public function unRecycle($user_id)
    {
        $where['user_id'] = $user_id;
        $where['state'] = 0;
        $update['remark'] = '用户主动登录取消注销申请';
        $update['state'] = -1;
        $update['create_time'] = time();
        $state = self::where($where)->update($update);
        // if($state){
        //     Privatechat::notice($user_id, '您发起注销后在审核期间再次登录，已取消注销申请');
        // }
    }
}
